package factory;
import color.Color;
import sp.CircleShape;
import sp.Rectangle;
import sp.Shape;

public class ShapeFactory extends AbsFactory{
    @Override
    public Shape createShape(String type){
        if ("circle".equalsIgnoreCase(type)) {
            return new CircleShape();
        }else if ("rectangle".equalsIgnoreCase(type)) {
            return new Rectangle();
        }
        return null;
    }


    @Override
    public Color createColor(String type){
       return null;
    }
}
